<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>欢迎访问产品运营互动中心！</title>
		<%@ include file="/commons/include/head-meta.inc.jsp"%>	
		<script type="text/javascript">
		$(document).ready(function(){
			var i=1;
			$('#addFile').click(function(){
				var fileName='uploadFile'+i;
				i++;
				var fileHtml='<div><input class="uploadFileCss" type="file" name="'+fileName+'" style="width: 500px"/><button class="delBtnClass" type="button" style="margin-right: 6px">删除</button></div>';
				$('#fileListId').append(fileHtml);
				f_iframeResize();
			});
			
			$('.delBtnClass').live('click',function(){
				$(this).parent().remove();
				f_iframeResize();
			});
		})
		
		</script>		
	</head>
	<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
	<form name="applyForm" id="applyForm" action="" method="post" enctype="multipart/form-data">
		<input type="hidden" id="isCommitId" name="isCommit" value=""/>
		<input type="hidden" name="flowTaskId" value="${taskView.procTranRecord.id }"/>
		<input type="hidden" name="procinstId" value="${taskView.procTranRecord.procinstId }"/>
		<table width="980" border="0" cellspacing="0" cellpadding="0"
			align="center">
			<tr>
				<td>
					<table width="100%" border="0" cellpadding="0" cellspacing="0" background="<c:url value="/images/new/gxzl_index_2.gif"/>">

						<tr>
							<td width="20" height="32">
								&nbsp;
							</td>
							<td width="20">
								<img src="<c:url value="/images/new/dq_dot.gif"/>" width="15" height="12" />
							</td>
							<td>
								当前位置：
								<font color="#003399">业务需求交互单</font>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td background="" class="leftbg">
					<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
						<tr>
							<td width="20%" valign="top">
								<jsp:include page="../pvc/inc/functionButonForMeeting.inc.jsp">
									<jsp:param name="formUrl" value="opMeetingProtocol.do?action=commitApplyTask"/>
								</jsp:include>								
								<table width="96%" border="0" cellspacing="0" cellpadding="0"
									align="center" bgcolor="#FFFFFF">
									<tr>
										<td valign="top" align="center">
												<table width="100%" border="0" cellspacing="0"
													cellpadding="7" align="center" class=tablecolor2>
													<tr>
														<td background="<c:url value="/images/catalog_manage_bbs_3.gif"/>"
															colspan="4">
															<span style="margin-top: 0px; margin-left: 14px">
																<img src="<c:url value="/images/catalog_manage_12.gif"/>" width=13 height=13 alt="">
															</span>
															<strong>流程信息</strong>
														</td>
													</tr>
													<tr>
														<td width="14%" bgcolor="D6E3FA">
															<div align="right" class="STYLE2">
																当前状态：
															</div>
														</td>
														<td width="36%">${taskView.procTranRecord.processStep.name }</td>
														<td bgcolor="D6E3FA" width="14%">
															<div align="right" class="STYLE2">
																当前办理人：
															</div>
														</td>
														<td width="36%">${taskView.procTranRecord.transactor.name }
														</td>
													</tr>
													<tr>
														<td bgcolor="D6E3FA" width="14%">
															<div align="right" class="STYLE2">
																当前流程：
															</div>
														</td>
														<td colspan="3">${taskView.procTranRecord.processConfig.name }
														</td>
													</tr>
													<c:if test="${taskView.procTranRecord.state!='end'}">
													<c:if test="${taskView.procTranRecord.taskType!='03' }">
													<tr>
														<td bgcolor="D6E3FA" width="14%">
															<div align="right" class="STYLE2">
																<font color="red">*</font>下一步骤：
															</div>
														</td>
														<td colspan="3">															
															<jsp:include page="../pvc/inc/nextNodeSetp.inc.jsp"></jsp:include>															
														</td>
													</tr>													
													</c:if>
													<tr>
														<td bgcolor="D6E3FA" width="14%">
															<div align="right" class="STYLE2">
																<font color="red">*</font>办理意见：
															</div>
														</td>
														<td colspan="3">
															<textarea id="commentComtentID" name="commentComtent" style="width: 95%;height: 60px" dataType="Require" msg="必填">${taskView.procTranRecord.transactInfo }</textarea>
														</td>
													</tr>													
													</c:if>
													<tr>
														<td bgcolor="D6E3FA" width="14%">
															<div align="right" class="STYLE2">
																流程事项说明：
															</div>
														</td>
														<td colspan="3">${taskView.procTranRecord.processStep.flowExplain }
														</td>
													</tr>													

													<tr>
														<td bgcolor="D6E3FA" width="14%">
															<div align="right" class="STYLE2">
																处理时限说明：
															</div>
														</td>
														<td colspan="3">${taskView.procTranRecord.processStep.limitExplain }
														</td>
													</tr>													
													
													
												</table>								
	
												<table width="100%" border="0" cellspacing="0" cellpadding="7" align="center" class=tablecolor2>
													<tr>
														<td background="<c:url value="/images/catalog_manage_bbs_3.gif"/>"
															colspan="4">
															<span style="margin-top: 0px; margin-left: 14px">
																<img src="<c:url value="/images/catalog_manage_12.gif"/>" width=13 height=13 alt="">
															</span>
															<strong>基本信息</strong>
														</td>
													</tr>
													<tr>
														<td bgcolor="D6E3FA" width="14%">
															<div align="right" class="STYLE2">
																<font color="red">*</font>标&nbsp;&nbsp;&nbsp;&nbsp;题：
															</div>
														</td>
														<td colspan="3">
															<input type="text" name="title" maxlength="128" dataType="Require" msg="必填" style="width: 90%;" value="${dataOne.title }"/>
														</td>
													</tr>
													<tr>
														<td bgcolor="D6E3FA">
															<div align="right" class="STYLE2">
																<font color="red">*</font>内&nbsp;&nbsp;&nbsp;&nbsp;容：
															</div>
														</td>
														<td colspan="3">
															<textarea id="reqContentId" name="content" style="width: 99%;height: 80px" require="true" dataType="LimitB" min="1" max="4000" msg="2000个汉字之内">${dataOne.title }</textarea>
															<input name="secret" type="hidden" value="27" /><%--普通 --%>
														</td>
													</tr>
													<tr>
														<td bgcolor="D6E3FA">
															<div align="right" class="STYLE2">
																上传附件：
															</div>
														</td>
														<td colspan="3" id="fileListId">
															<div><input class="uploadFileCss" type="file" name="uploadFile" style="width: 500px"/><button id="addFile" style="margin-right: 6px" type="button">添加</button></div>
														</td>
													</tr>
													<tr>
														<td bgcolor="D6E3FA">
															<div align="right" class="STYLE2">
																 已传附件：
															</div>
														</td>
														<td colspan="3" id="fileListId">
															<table width="60%" border="0" class=tablecolor2>
																<tr style="background-color: #D6E3FA;text-align: center;">
																	<td style="width: 40px">删除</td>
																	<td>名称</td>
																</tr>
																<c:forEach items="${attachList }" var="attachOne">
																<tr>
																	<td style="text-align: center;"><input name="attactId" type="checkbox" value="${attachOne.id }"/></td>
																	<td><a href="${ctx }/common/showFile.action?attach.id=${attachOne.id }">${attachOne.name }</a></td>
																</tr>
																</c:forEach>
															</table>															
														</td>
													</tr>
													

												</table>
												
												<table width="100%" border="0" cellspacing="0"
													cellpadding="7" align="center" class=tablecolor2>
													<tr>
														<td
															background="<c:url value="/images/catalog_manage_bbs_3.gif"/>"
															colspan="4">
															<span style="margin-top: 0px; margin-left: 14px"><img
																	src="<c:url value="/images/catalog_manage_12.gif"/>" width="13" height="13" alt="">
															</span>
															<strong>办理过程</strong>
														</td>
													</tr>
													
													<tr>
														<td>
															<jsp:include page="../pvc/inc/taskDetailList.inc.jsp"></jsp:include>
														</td>
													</tr>
												</table>																								
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		</form>
	</body>
</html>